package cn.hg.solon.youcan.common.constant;

/**
 * @author 胡高
 */
public interface WebConstants {

    /**
     * 默认页号
     */
    public static final int DEFAULT_PAGE_NUMBER = 1;

    /**
     * 默认页号
     */
    public static final String DEFAULT_PAGE_NUMBER_STRING = "1";

    /**
     * 默认页大小
     */
    public static final int DEFAULT_PAGE_SIZE = 10;

    /**
     * 默认页大小
     */
    public static final String DEFAULT_PAGE_SIZE_STRING = "10";

    /**
     * 排序方向（正向）
     */
    public static final String ORDER_DIRECTION_ASC = "asc";

    /**
     * 排序方向（反向）
     */
    public static final String ORDER_DIRECTION_DESC = "desc";

    /**
     * Web传输过来的pageNumber参数名（Layui为page）
     */
    public static final String WEB_PARAM_NAME_PAGE_NUMBER = "page";

    /**
     * Web传输过来的pageSize参数名（Layui为limit）
     */
    public static final String WEB_PARAM_NAME_PAGE_SIZE = "limit";

    /**
     * Web传输过来的orderColumn参数名（Layui为sortField）
     */
    public static final String WEB_PARAM_NAME_ORDER_COLUMN = "orderColumn";

    /**
     * Web传输过来的orderDirection参数名（Layui为sortType）
     */
    public static final String WEB_PARAM_NAME_ORDER_DIRECTION = "orderDirection";

    /**
     * 404错误页面地址
     */
    public static final String ERROR_PAGE_404 = "/_error/404.html";

    /**
     * 500错误页面地址
     */
    public static final String ERROR_PAGE_500 = "/_error/500.html";

    /**
     * sa-token获取当前用户ID的getter的Bean对象名称
     */
    public static final String USER_ID_GETTER = "USER_GETTER";
}
